build: make FILE symbol paths consistent
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Fri, 3 Mar 2023 06:58:12 +0000 (07:58 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 3 Mar 2023 06:58:12 +0000 (07:58 +0100)
commit46c104cce0bf340193cb1eacaee5dcd75e264c8f
treed210b5d5615eba392497e62ab080a6ec3ace0b71
parent74b76704fd4059e9133e84c1384501858e9663b7
build: make FILE symbol paths consistent

The FILE symbols in out-of-tree builds may be either a relative path to
the object dir or an absolute path depending on how the build is
invoked. Fix the paths for C files so that they are consistent with
in-tree builds - the path is relative to the "xen" directory (e.g.
common/irq.c).

This fixes livepatch builds when the original Xen build was out-of-tree
since livepatch-build always does in-tree builds. Note that this doesn't
fix the behaviour for Clang < 6 which always embeds full paths.

Fixes: 7115fa562fe7 ("build: adding out-of-tree support to the xen build")
Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: 5b9bb91abba7c983def3b4bef71ab08ad360a242
master date: 2023-02-15 16:13:49 +0100
xen/Rules.mk